package com.tengju.bff.interfaces.covercharge.constant;


public enum CustPaidTransPropEnum {

    INDIVIDUAL_ACCOUNT(0,"个人账户"),
    COMPANY_ACCOUNT(1,"公司账户"),
    ;

    private Integer code;
    private String desc;

    CustPaidTransPropEnum(Integer code, String desc){
        this.code=code;
        this.desc=desc;
    }
    public Integer getCode(){
        return this.code;
    }
    public String getDesc(){
        return this.desc;
    }

    public static CustPaidTransPropEnum getByCode (Integer code){
        for(CustPaidTransPropEnum accountTypeEnum : (CustPaidTransPropEnum.values())){
            if(accountTypeEnum.getCode().equals(code)){
                return accountTypeEnum;
            }
        }
        return null;
    }
}
